package com.cuijq.ms.statedesign.v5;

/**
 * @author by CuiJQ
 * @Classname IMario
 * @Description IMario Description
 * @Date 2021/5/29 16:12
 *
 * 将状态传入接口中，状态变化
 * IMario 是状态的接口，定义了所有的事件
 */
public interface IMario {

  State getName();

  void obtainMushRoom(MarioStateMachine stateMachine);

  void obtainCape(MarioStateMachine stateMachine);

  void obtainFireFlower(MarioStateMachine stateMachine);

  void meetMonster(MarioStateMachine stateMachine);
}
